package com.guijq.selfcode.loglearn;

import org.apache.logging.log4j.LogManager;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author yangjf
 * @version 0.1.0
 * @time 2018/11/27/027
 */
public class SlfLog {
    public static void main(String[] args) {
        //slf4j log
        Logger logger = LoggerFactory.getLogger("slf4j");
        logger.error("test hello");

//        try {
        org.apache.logging.log4j.Logger log = LogManager.getLogger("log4j");
        log.error("test log4j");
//        } catch (Exception e) {
//            e.printStackTrace();
//        }
//        org.apache.logging.log4j.Logger log = LoggerFac
    }
}
